package com.njust.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @version 1.0
 * @Author Imak
 * @Date 2024/10/18 14:17
 * @用户实体类，与数据库关联
 */
@TableName("user")
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class User implements Serializable {
    private static final long serialVersionUID = -40356785423868312L;

    //主键
    @TableId(type = IdType.AUTO)
    private Integer uId;
    //用户名
    private String userName;
    //密码
    @JsonProperty("uPw")
    private String uPw;
    //真实姓名
    private String uName;
    //所属机构
    private String institution;
    //电话
    private String uTel;
    //身份 默认为0(检测人员） 1(支持人员)
    private int uStatus;


}
